import request from '@/utils/request';

// 查询服务设施列表
export function getFacilitiesList(params) {
  return request({
    url: '/manage/apartment/facilities/list',
    method: 'get',
    params
  });
}

// 新增服务设施
export function addFacilities(data) {
  return request({
    url: '/manage/apartment/facilities',
    method: 'post',
    data
  });
}

// 修改服务设施
export function updateFacilities(data) {
  return request({
    url: '/manage/apartment/facilities',
    method: 'put',
    data
  });
}

// 删除服务设施
export function deleteFacilities(id) {
  return request({
    url: '/manage/apartment/facilities/' + id,
    method: 'delete'
  });
}

// 获取服务设施详细信息
export function getFacilitiesDetail(ids) {
  return request({
    url: '/manage/apartment/facilities/' + ids,
    method: 'get'
  });
}
